package com.qu.waibao.home.activity;

import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.alibaba.mobileim.YWAPI;
import com.alibaba.mobileim.YWIMKit;
import com.alibaba.mobileim.utility.UserContext;
import com.qu.waibao.AppConfig;
import com.qu.waibao.R;
import com.qu.waibao.base.BaseActivity;

public class KefuActivity extends BaseActivity {

    @Override
    protected int getContentView() {
        return R.layout.activity_kefu;
    }

    @Override
    protected void initWidget() {
        super.initWidget();
        YWIMKit mIMKits = YWAPI.getIMKitInstance(AppConfig.getString("userid"), AppConfig.APP_KEY);
        Fragment fragment = mIMKits.getConversationFragment();
        Bundle fragmentBundle = new Bundle();
        fragmentBundle.putSerializable(UserContext.EXTRA_USER_CONTEXT_KEY, mIMKits.getUserContext());
        addFragment(R.id.fl_container,fragment);
    }

    @Override
    protected void initData() {
        super.initData();
    }
}
